package cn.com.tarotframework.server.oauth.service.impl;


import cn.com.tarotframework.server.oauth.mapper.IUserMapper;
import cn.com.tarotframework.server.oauth.po.UserPo;
import cn.com.tarotframework.server.oauth.service.IUserService;
import cn.com.tarotframework.server.oauth.vo.UserSearchVo;
import com.mybatisflex.core.query.QueryWrapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * copyright (C), 2022, 塔罗牌基础架构
 *
 * @program tarot-authorization-server
 * @description 用户信息接口实现类
 * @author Jiang Xincan
 * @version 0.0.1
 * @create 2022/5/20 18:54
 **/
@Service
public class UserServiceImpl implements IUserService {

    private final IUserMapper userMapper;

    public UserServiceImpl(IUserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<UserSearchVo> findAll() {
        return userMapper.selectListByQueryAs(new QueryWrapper(), UserSearchVo.class);
    }
}
